<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends User_Controller
{

	
	function __construct()
	{
		parent::__construct();
         $this->smarty->assign("current_class", $this->router->fetch_class());
         $this->smarty->assign("current_method",$this->router->fetch_method());
		$this->uid = $this->user_data['id'];
		// if( $this->logged_in==0) {header("Location:/");exit;}
	}	

	public function index($value='')
	{
		$user_info = get_field_by_where("user","nick, head_image_url","id='{$this->uid}'");
		$this->smarty->assign("user_info", $user_info);
		$this->smarty->display("user/home.html");
	}

}